package com.flipdf2.serialize;

import java.io.OutputStream;

import com.flipdf2.Document;

public abstract class DocumentSerializer {

	public static enum Serializer {
		XML
	};

	public static DocumentSerializer newDocumentSerializer(Serializer serializer, OutputStream stream) {
		if (serializer == Serializer.XML) {
			return new XMLDocumentSerializer(stream);
		}
		return new XMLDocumentSerializer(stream);
	}

	public abstract void serialize(Document doc);

}
